package cn.cvs.dao;

import cn.cvs.entity.Rent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RentMapper {
    List<Rent> list(@Param("startIndex") int pageIndex,@Param("pageSize") int pageSize);
    int count();
    int update(@Param("id") int id,@Param("status") int status);
    int delete(int id);
    int add(Rent rent);
    List<Rent> listByUserName(@Param("startIndex") int pageIndex,@Param("pageSize") int pageSize,@Param("userName") String userName);
}
